package com.yonyougov.devops.cruxcisupport.commitcontext;

import com.yonyougov.devops.cruxcisupport.util.CruxDevOpsIdGenerator;
import com.yonyougov.devops.fwc.core.entity.BasicEntity;
import com.yonyougov.devops.fwc.core.id.IdGenerator;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigInteger;

/***
 * t_commit_context
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CommitContextEntity extends BasicEntity implements Serializable {

    /***
     * 主键
     */
    private BigInteger id;

    /***
     * 提测id
     */
    private BigInteger commitTestId;

    /***
     * 应用id
     */
    private BigInteger appId;

    /***
     * 版本id
     */
    private BigInteger versionId;

    /***
     * 提测分支
     */
    private String testBranch;

    /***
     * 描述
     */
    private String remark;

    /**
     * 正式版本
     */
    private BigInteger masterVersionId;

    /**
     * 客户验证版本
     */
    private BigInteger khyzVersionId;


    //<!--用户自定义代码开始-->
    public IdGenerator idGenerator() {
        return new CruxDevOpsIdGenerator();
    }
    //<!--用户自定义代码结束-->
}
